import { defineStore } from 'pinia'
import type { School } from '../types/school'

export const useSchoolStore = defineStore('school', {
  state: () => ({
    currentSchool: null as School | null
  }),
  
  actions: {
    setCurrentSchool(school: School) {
      this.currentSchool = school
    },
    
    clearCurrentSchool() {
      this.currentSchool = null
    }
  }
}) 